#ifndef THREADSTUDIALOG_H
#define THREADSTUDIALOG_H

#include <QDialog>
#include "loopthread.h"
#include "noloopthread.h"

namespace Ui {
class ThreadStuDialog;
}

class ThreadStuDialog : public QDialog
{
    Q_OBJECT

public:
    explicit ThreadStuDialog(QWidget *parent = nullptr);
    ~ThreadStuDialog();

private slots:
    void on_btn_noLoop_clicked();

    void on_btn_loop_clicked();

private:
    Ui::ThreadStuDialog *ui;
    LoopThread * loopThread;
    NoLoopThread * noLoopThread;

public slots:
    void onGreet();

//hello信号,让子线程调用,看看槽函数在哪个线程被执行.
signals:
    void hello();



};

#endif // THREADSTUDIALOG_H
